{extend name="common/public" /}
{block name="content"}

<div class="widget-body am-fr">
    <div class="am-form-group">
    </div>
</div>

<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
    <div class="widget am-cf">
        <div class="widget-head am-cf">
            <div class="widget-title am-fl">文章分类</div>
            <div class="widget-function am-fr">
                <a href="javascript:;" class="am-icon-cog"></a>
            </div>
        </div>
        <div class="widget-body  widget-body-lg am-fr">

            <table width="100%" class="am-table am-table-compact am-table-bordered tpl-table-black ">
                <thead>

                <tr>
                    <th class="am-lg-text-center">
                        id
                    </th>
                    <th class="am-lg-text-center">
                        文章分类名
                    </th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>

                {foreach $list as $v}
                    <tr class="gradeX">
                        <td class='am-lg-text-center'> {$v.id}</td>
                        <td class='am-lg-text-center'> {$v.name}</td>
                        <td>

                            <div class="tpl-table-black-operation">
                                <a onclick="window.location.href = '{:url('article_list',['type_id'=>$v['id'],'name'=>$v['name']])}'">
                                    <i class="am-icon-eye"></i> 查看文章
                                </a>
                            </div>

                        </td>
                    </tr>
                {/foreach}
                </tbody>
            </table>

            {$list|raw}

        </div>
    </div>
</div>

{/block}

{/extend}
